namespace go industics.blockchain.design

include "base.thrift"

service DesignService {
    base.BaseGetResp GetBOM(1:base.BaseGetReq req)
    base.BaseGetResp GetECN(1:base.BaseGetReq req)

    base.BaseGetResp GetBOMHistory(1:base.BaseGetReq req)
    base.BaseGetResp GetECNHistory(1:base.BaseGetReq req)

    base.BaseGetResp GetBOMByRange(1:base.BaseRangeGetReq req)
    base.BaseGetResp GetECNByRange(1:base.BaseRangeGetReq req)

    base.BasePostResp CreateBOM(1:base.BasePostReq req)
    base.BasePostResp CreateECN(1:base.BasePostReq req)

    base.BasePutResp UpdateBOM(1:base.BasePutReq req)
    base.BasePutResp UpdateECN(1:base.BasePutReq req)

    base.BaseDeleteResp DeleteBOM(1:base.BaseDeleteReq req)
    base.BaseDeleteResp DeleteECN(1:base.BaseDeleteReq req)
}